@include('blog::layouts.header')
<article>
  <div class="lbox">	
	@if($id == 1)
		<div class="banbox">
		  <div class="banner">
			<div id="banner" class="fader">				
				@foreach($banner as $k=>$v)
					<li class="slide"><a><img src="{{$v['image_one']['url']}}"></a></li>
				@endforeach
				<div class="fader_controls">
					<div class="page prev" data-target="prev"></div>
					<div class="page next" data-target="next"></div>
					<ul class="pager_list"></ul>
				</div>
			</div>
		  </div>
		</div>	
	@endif
    <div class="whitebg bloglist">	  
		<h2 class="htitle">{{$name}}</h2>	 
		<ul>	
			@foreach($articles as $article)			
				<li>		
					<h3 class="blogtitle">	
						<a href="{{ route('blog.index.info',['id'=>$article['id']]) }}">				
						{{$article->title}}				
						</a>		
					</h3>			 
					<span class="blogpic imgscale">		
					<a>					
						<img src="{{$article->image_one->url}}"  alt="">	
					</a>			
					</span>		
					<p class="blogtext">{!! str_limit(strip_tags($article->content),130,'...') !!}</p>			 
					<p class="bloginfo">	
						<span>创建时间：{{$article->created_at}}</span>			
					</p> 			
					<a href="{{ route('blog.index.info',['id'=>$article['id']]) }}" class="viewmore">阅读更多</a> 		
				</li>		
			@endforeach	  
		</ul>	 
		{{$articles->appends(['id' => $id])->links('blog::layouts.pagination')}}	
	</div>
  </div>
  @include('blog::layouts.right')
</article>@include('blog::layouts.footer')

